package com.qfedu.bean.result;

import java.util.List;

/**
 * @Author lcw
 * @Description
 * @Date 2022/4/20
 */
public class QueryResult<T> extends  Result {

    private  int count; //总记录数，一共有多少条数据
    private  int pages;// 总页数
    private  int pageNum; //第几页
    private  int pageSize; // 每页有多少条数据
    private List<T> data;

    public QueryResult() {
    }

    public QueryResult(ResultEnum resultEnum) {
        super(resultEnum);
    }
    public QueryResult(ResultEnum resultEnum, String datas) {
        super(resultEnum,datas);
    }


    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }


    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {

        return "QueryResult1{" +
                "count=" + count +
                ", pages=" + pages +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", success=" + success +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                ", data='" + this.data + '\'' +
                '}';


    }
}
